﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SqlServerDriver
{
	public partial class RequestNameForm : Form
	{
		public RequestNameForm()
		{
			InitializeComponent();
			ObjectName = "";
		}

		private void BtnOk_Click(object sender, EventArgs e)
		{
			ObjectName = txtName.Text;
			if (ObjectName.Length > 0)
			{
				this.DialogResult = System.Windows.Forms.DialogResult.OK;
				this.Close();
			}
		}

		private void BtnCancel_Click(object sender, EventArgs e)
		{
			this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.Close();
		}

		public String ObjectName{ get; set; }
	}
}
